<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
</head>
<body>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <h2>添加用户</h2>
    <form id="form" method="post" action="/ssh2/addUser">
        姓名：<input name="name" v-model="name"><br>
        年龄：<input name="age" v-model="age">
        <input type="submit" value="添加">
        <p>{{name}},{{age}}</p>
    </form>

    <script>
        var add=new Vue({
            el:"#form",
            data:{
                name:"张三",
                age:"23"
            }
        })
    </script>
</body>
</html>